package com.rmb.system;

import com.rmb.mart.entity.linxi.util.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

/**
 * @author wan
 * @Title: SystemApplication
 * @Package system
 * @Description: wan
 * @date 2021/1/2016:03
 */
@SpringBootApplication
@EnableEurekaClient
@MapperScan("com.rmb.system.dao")
public class SystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class,args);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
